<?php
require_once 'Vega/Module/Action.php';
require_once 'Vega/Module/AjaxReturn.php';

class Get_HarvertAction extends Vega_Module_Action
{
	public $_return = null;
	
	public function __construct(Vega_App $app) {
		parent::__construct($app);
		$this->_return = new Vega_Module_AjaxReturn;
	}
		
    public function execute()
    {
		$this->setOption('output', FALSE);		
		
		$commonDao = Vega_Dao::factory('Bbservice_Common');
		
		$data = $commonDao->getHarvertData(Array('limit' => 20), IGNORE_PAST);
		
		echo json_encode($data);
    }
 
}